package com.gxkj.drm.enums;

/**
 * Created by shaoxiangfei
 */
public enum SendType {

    INIT(1), //服务器初始化时推送

    SEND(2), //手动推送

    THIRD_PARTY(3); //第三方调用

    private int type;

    SendType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public static SendType findSendType(int type) {
        for (SendType dt : SendType.values()) {
            if (dt.getType() == type) {
                return dt;
            }
        }

        return null;
    }
}
